package com.demo.service;

import com.demo.entity.Clientele;
import com.demo.vo.ClienteleVo;

import java.util.List;

public interface IClienteleService {

    /**
     * 分页查询:关键字，手机号、字段升降序、每页显示大小，某一页
     * 默认进行每页15个显示
     *
     * @param arg
     * @return
     */
    public List<Clientele> queryByPage(ClienteleVo arg);

    public int queryCount(ClienteleVo arg);

    int deleteByPrimaryKey(Integer id);

    int insert(Clientele arg);

    int insertSelective(Clientele arg);

    Clientele selectByPrimaryKey(Integer id);
    int updateByPrimaryKeySelective(Clientele arg);

    List<Clientele> queryMyClientele(ClienteleVo arg);

    /**
     *通过com_name && unitCode 查找
     * @param clientele
     * @return
     */
    Clientele selectByComNameAndUnitCode(Clientele clientele);


}
